import Vue from 'vue'
//引入axios,并加到原型链中
import axios from 'axios'
Vue.prototype.$axios = axios;
axios.defaults.baseURL = '/api'
axios.defaults.headers.post['Content-Type'] = 'application/json';
